#ifndef __ADC_H__
#define __ADC_H__


typedef struct {
    unsigned int CON;
    unsigned int DAT;
    unsigned int INTENB;
    unsigned int INTCLR;
    unsigned int PRESCALERCON;
} adc_t;

#define ADC (*(adc_t *)0xC0053000)

void hal_adc_init(void);
int get_adc_value(void);

#endif

